﻿using Sorting.App.Models.Enum;


namespace Sorting.App.Models
{
    /// <summary>
    /// 库位基础信息表
    ///</summary>
    public class ShelfEntity
    {
        /// <summary>
        /// 主键 
        ///</summary>
        public string Uuid { get; set; }
        /// <summary>
        /// 名称 
        ///</summary>
        public string Name { get; set; }
        /// <summary>
        /// 唯一编码 
        ///</summary>
        public string Code { get; set; }
        /// <summary>
        /// 最大储量 
        /// 默认值: 99999
        ///</summary>
        public int Max { get; set; }
        /// <summary>
        /// 最小库存 
        /// 默认值: 0
        ///</summary>
        public int? Min { get; set; }
        /// <summary>
        /// 储位状态;  0：空、1：有货、2、满载、3:异常、4、忙碌 
        ///</summary>
        public EnumStockBoxState State { get; set; }
        /// <summary>
        /// X轴对应的PLC寄存器地址 
        ///</summary>
        public string Plclocx { get; set; }
        /// <summary>
        /// 对应X轴值 
        ///</summary>
        public string Xpulse { get; set; }
        /// <summary>
        /// 对应的Y轴值 
        ///</summary>
        public string Zpulse { get; set; }
        /// <summary>
        /// Z轴对应的PLC寄存器地址 
        ///</summary>
   
        public string Plclocz { get; set; }
        /// <summary>
        /// 当前总库存 
        ///</summary>
        public int Allstock { get; set; }
        /// <summary>
        /// 控制电路板地址 
        ///</summary>
        public int? ControlBoard { get; set; }
        /// <summary>
        /// 控制电路板对应编号 
        ///</summary>
        public string ControlNo { get; set; }
        /// <summary>
        /// 对应的病区 
        ///</summary>
        public string WardArea { get; set; }


        /// <summary>
        /// 左侧还是右侧 
        ///</summary>
        public string LeftOrRight { get; set; }


        /// <summary>
        /// 行 
        ///</summary>
        public string Row { get; set; }


        /// <summary>
        /// 列 
        ///</summary>
        public string Col { get; set; }





        /// <summary>
        /// 对应储位当时维护的病区编码
        /// </summary>

        public string ward_code { get; set; }

        /// <summary>
        /// 贴签机分会的条码
        /// </summary>
   
        public string tqsn_no { get; set; }

        /// <summary>
        /// 贴签对应的发药单ID
        /// </summary>
    
        public string tqorder_id { get; set; }

        /// <summary>
        /// 扫描单号
        /// </summary>
        public string ScanInfo { get; set; }
    }
}